import { CustomerModel, DoctorGrouponModel, DoctorModel, ClinicAddressModel } from "../models";


class Cache {
    private static _instance: Cache;
    private session: CustomerModel;
    private appId: number;
    private appid: string;
    private sessionToken: string;
    private groupModel: DoctorGrouponModel;
    private doctorModel: DoctorModel;
    private addressModel: ClinicAddressModel;
    private liveModel: any;
    private constructor(
    ) {
    }
    public static get Instance() {
        return this._instance || (this._instance = new this());
    }

    setSession(customer: CustomerModel): void {
        this.session = customer;
    }

    getSession(): CustomerModel {
        return this.session;
    }

    setSessionToken(sessionToken: string): void {
        this.sessionToken = sessionToken;
    }

    getSessionToken(): string {
        return this.sessionToken;
    }

    setGroup(groupModel: DoctorGrouponModel): void {
        this.groupModel = groupModel;
    }

    getGroup(): DoctorGrouponModel {
        return this.groupModel;
    }

    setDoctor(doctor: DoctorModel): void {
        this.doctorModel = doctor;
    }

    getDoctor(): DoctorModel {
        return this.doctorModel;
    }

    setAddress(address: ClinicAddressModel): void {
        this.addressModel = address;
    }

    getAddress(): ClinicAddressModel {
        return this.addressModel
    }

    setLive(live: any): void {
      this.liveModel = live
    }

    getLive(): any {
      return this.liveModel
    }



}
const instance = Cache.Instance;
export default instance;